/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import java.beans.*;
import java.io.Serializable;

/**
 *
 * @author pborrego
 */
public class User implements Serializable {

    private PropertyChangeSupport propertySupport;

    public User() {
        propertySupport = new PropertyChangeSupport(this);
    }

    protected boolean validUser;

    /**
     * Get the value of validUser
     *
     * @return the value of validUser
     */
    public boolean isValidUser() {
        return validUser;
    }

    /**
     * Set the value of validUser
     *
     * @param validUser new value of validUser
     */
    public void setValidUser(boolean validUser) {
        this.validUser = validUser;
    }

    protected int userID;

    /**
     * Get the value of userID
     *
     * @return the value of userID
     */
    public int getUserID() {
        return userID;
    }

    /**
     * Set the value of userID
     *
     * @param userID new value of userID
     */
    public void setUserID(int userID) {
        this.userID = userID;
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.removePropertyChangeListener(listener);
    }

}
